-- GENERATED SPELL FOR [Darkeye Bonecaster] --


function spell0_1522(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(13322,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1522', 5000, 1)
end

function Sorts_1522(pUnit, Event)
local choix_sorts_1522 = math.random(0, 0)
if choix_sorts_1522 == 0 then
pUnit:RegisterEvent('spell0_1522', 1, 1)
end
end

function mob1522_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1522', math.random(1500, 3000), 1)
end

function mob1522_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1522_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1522_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1522, 1, 'mob1522_Action')
RegisterUnitEvent(1522, 2, 'mob1522_Leave')
RegisterUnitEvent(1522, 3, 'mob1522_Kill')
RegisterUnitEvent(1522, 4, 'mob1522_Die')
